package com.freshmarket.freshmarket.controller.form;


import lombok.Data;

import javax.validation.constraints.*;
import java.util.Date;


@Data
    public class FormKillProduct {
        //商品id
        @DecimalMin(value = "1")
        private  int productId;
        //商品名字
        @NotBlank()
        private  String  productName;
        //日期
        @Future
        private  Date date;
        //数量
        @DecimalMin(value = "1")
        private int number;
        //持续时间
        @NotEmpty
        private String time;
        //折扣
        @NotEmpty
        private String discount;
        //真正的时间
        private String newDate;

    }

